<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use App\Services\qikan;
use App\Models\bookDetail;
use App\Models\qikan as qikanModels;

use GuzzleHttp\Client;

class IndexController extends Controller
{
    // public function getlist()
    // {
    //     $qikan = new qikan();
    //     $data = $qikan->getCatalogListById('3542066a-b9ec-4470-b057-50e64c8c6e87', '2019', '6');
    //     // return $data;
    //     $book_details = new bookDetail();
    //     $ret = $book_details->insert($data);
    //     dump($ret);
    // }
    // public function getcontent($value='')
    // {
    //     $qikan = new qikan();
    //     $data = $qikan->getContentById('dush20190601');
    // }
    public function index($value='')
    {
        $qikan = new qikan();
        $ret = $data = $qikan->searchByname('读');
        dump($ret);
        $qikanModels = new qikanModels();
        $rets = $qikanModels->insert($data);
        dump($rets);
    }
}

